cmake_minimum_required(VERSION 3.16)
project(undistort)

set(CMAKE_CXX_STANDARD 20)

# clion cmake options����Ҫ�������:-DCMAKE_TOOLCHAIN_FILE=/home/ningdr/soft/vcpkg/scripts/buildsystems/vcpkg.cmake
set(VCPKG_PACKAGES_PATH /home/ningdr/soft/vcpkg/packages)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/bin)
set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_SOURCE_DIR})

find_package(spdlog CONFIG REQUIRED)
find_package(yaml-cpp CONFIG REQUIRED)

set(OpenCV_DIR /mnt/d/clibs/opencv/linux-4.5.5/lib/cmake/opencv4)
find_package(flann CONFIG REQUIRED)
find_package(OpenCV REQUIRED)
find_package(PCL CONFIG REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

add_subdirectory(src/util)
add_subdirectory(src/opencv_test)
add_subdirectory(src/projection)
add_subdirectory(src/opencv)
add_subdirectory(src/undistort)
add_subdirectory(src/pcd2ply)

